Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update macrOutput file #14303

Merged
merged 8 commits into from
Feb 19, 2024
Merged

Update macrOutput file #14303

merged 8 commits into from
Feb 19, 2024

Conversation

Amirhoseinkr73
Copy link
Contributor

the owner of the file is me, and I want to commit the change to have it on my account also.

Amirhoseinkr73 and others added 7 commits June 7, 2021 15:40
MacrOutput
This code which is called MacrOutput describes the relationship between density, flow, and speed based on sumo Edge-based output. Edge-base output includes some information about density, speed, travel time and etc. to extract fundamental diagrams based on Edge-based data, mean density, mean speed, and mean flow should be calculated. To calculate the mean of every component, data must be aggregated for all segments. In SUMO there is not any module to aggregate data and show fundamental diagrams. Also, aggregating data with some software like Excel is time-consuming. Therefore macrOutput is developed to cover this gap. MacrOutput aggregate data and show macroscopic fundamental diagram (density vs flow, density vs speed, speed vs flow) based on simulation data. Also, MacrOutput demonstrates fundamental diagrams based on both density and lane density. Moreover, MacrOutput generates two output file which shows mean density, mean speed, mean flow results. The calculation process and relationships are taken from [1]. To use this feature execute the following steps:
1. Put MacrOutput.py in the simulation folder.
2. Run cmd
3. Run this code (MacrOutput.py -i <input file (for example : OUTPUT_FILE.xml)>)
Reference
1. Qiong Lu, Tamás Tettamanti, Dániel Hörcher & István Varga (2019): The impact of autonomous vehicles on urban traffic network capacity: an experimental analysis by microscopic traffic simulation, Transportation Letters, DOI: 10.1080/19427867.2019.1662561.
Required packages
 pandas_read_xml
 pandas
 numpy
 collections
 matplotlib.pyplot
@m-kro
Copy link
Contributor

m-kro commented Feb 5, 2024

Could you please leave the date in the header comment as it was? It relates to the file creation, not the last update. Afterwards we can merge the pull request.

@Amirhoseinkr73
Copy link
Contributor Author

Hi again, I changed the date to its creation date as you mentioned.
Best regards,
Amir

@m-kro m-kro merged commit 737f97c into eclipse-sumo:main Feb 19, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants